#!/bin/bash

# docker run -d --name rabbitmq --hostname my-rabbit rabbitmq:3

rabbitmq_container=first-rabbit

docker stop ${rabbitmq_container}
docker rm ${rabbitmq_container}

docker run -d \
--name ${rabbitmq_container} \
--hostname rabbitmq-demo \
-p 5672:5672 \
-p 8080:15672 \
-e RABBITMQ_DEFAULT_USER=admin \
-e RABBITMQ_DEFAULT_PASS=admin \
rabbitmq:3-management